import request from "@/utils/request";

export default {
  // 查询备案列表
  listRecord(query) {
    return request({
      url: "/record/record/list",
      method: "get",
      params: query,
    });
  },

  // 查询备案详细
  getRecord(id) {
    return request({
      url: "/record/record/" + id,
      method: "get",
    });
  },

  // 新增备案
  addRecord(data) {
    return request({
      url: "/record/record",
      method: "post",
      data: data,
    });
  },

  // 修改备案
  updateRecord(data) {
    return request({
      url: "/record/record",
      method: "put",
      data: data,
    });
  },

  // 删除备案
  delRecord(id) {
    return request({
      url: "/record/record/" + id,
      method: "delete",
    });
  },
};
